package com.example.daibanshiwu.Service;

import com.example.daibanshiwu.pojo.Group;
import com.example.daibanshiwu.pojo.Message;
import com.example.daibanshiwu.pojo.SimpleGroupDTO;
import com.example.daibanshiwu.pojo.TUser;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GroupService {

//寻找所有分组信息
public List<Group> getGroupMembers();

//删除分组
//public Integer deleteGroup(String groupId);
   public void deleteGroups(List<String> groupIds);
//寻找除自己以外的所有分组
public List<TUser> findAllUser(String name);
public List<TUser> findAllUser();
//通过子分组的ID寻找组员
public List<TUser> findUsersByGroupIds(List<String> groupIdList);

//更新小组状态
public  int updateGroupStatus(String groupId, String newStatus);

//添加小组及成员
public  int   addGroup(Group group);

    public List<SimpleGroupDTO> getSimpleGroups();
}
